
package com.ktgj.common.spring.entity.iata.iata_orderreshoprq;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>OriginDestCriteriaType complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="OriginDestCriteriaType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="CalendarDateCriteria" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_OrderReshopRQ}CalendarDateCriteriaType" minOccurs="0"/&gt;
 *         &lt;element name="ConnectionPRefRefID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
 *         &lt;element name="DestArrivalCriteria" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_OrderReshopRQ}DestArrivalCriteriaType"/&gt;
 *         &lt;element name="JourneyDurationCriteria" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_OrderReshopRQ}JourneyDurationCriteriaType" minOccurs="0"/&gt;
 *         &lt;element name="OriginDepCriteria" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_OrderReshopRQ}OriginDepCriteriaType"/&gt;
 *         &lt;element name="OriginDestID" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/&gt;
 *         &lt;element name="PreferredCabinType" type="{http://www.iata.org/IATA/2015/00/2018.2/IATA_OrderReshopRQ}CabinTypeType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OriginDestCriteriaType", propOrder = {
    "calendarDateCriteria",
    "connectionPRefRefID",
    "destArrivalCriteria",
    "journeyDurationCriteria",
    "originDepCriteria",
    "originDestID",
    "preferredCabinType"
})
public class OriginDestCriteriaType {

    @XmlElement(name = "CalendarDateCriteria")
    protected CalendarDateCriteriaType calendarDateCriteria;
    @XmlElement(name = "ConnectionPRefRefID")
    protected String connectionPRefRefID;
    @XmlElement(name = "DestArrivalCriteria", required = true)
    protected DestArrivalCriteriaType destArrivalCriteria;
    @XmlElement(name = "JourneyDurationCriteria")
    protected JourneyDurationCriteriaType journeyDurationCriteria;
    @XmlElement(name = "OriginDepCriteria", required = true)
    protected OriginDepCriteriaType originDepCriteria;
    @XmlElement(name = "OriginDestID")
    protected String originDestID;
    @XmlElement(name = "PreferredCabinType")
    protected List<CabinTypeType> preferredCabinType;

    /**
     * 获取calendarDateCriteria属性的值。
     * 
     * @return
     *     possible object is
     *     {@link CalendarDateCriteriaType }
     *     
     */
    public CalendarDateCriteriaType getCalendarDateCriteria() {
        return calendarDateCriteria;
    }

    /**
     * 设置calendarDateCriteria属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link CalendarDateCriteriaType }
     *     
     */
    public void setCalendarDateCriteria(CalendarDateCriteriaType value) {
        this.calendarDateCriteria = value;
    }

    /**
     * 获取connectionPRefRefID属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getConnectionPRefRefID() {
        return connectionPRefRefID;
    }

    /**
     * 设置connectionPRefRefID属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setConnectionPRefRefID(String value) {
        this.connectionPRefRefID = value;
    }

    /**
     * 获取destArrivalCriteria属性的值。
     * 
     * @return
     *     possible object is
     *     {@link DestArrivalCriteriaType }
     *     
     */
    public DestArrivalCriteriaType getDestArrivalCriteria() {
        return destArrivalCriteria;
    }

    /**
     * 设置destArrivalCriteria属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link DestArrivalCriteriaType }
     *     
     */
    public void setDestArrivalCriteria(DestArrivalCriteriaType value) {
        this.destArrivalCriteria = value;
    }

    /**
     * 获取journeyDurationCriteria属性的值。
     * 
     * @return
     *     possible object is
     *     {@link JourneyDurationCriteriaType }
     *     
     */
    public JourneyDurationCriteriaType getJourneyDurationCriteria() {
        return journeyDurationCriteria;
    }

    /**
     * 设置journeyDurationCriteria属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link JourneyDurationCriteriaType }
     *     
     */
    public void setJourneyDurationCriteria(JourneyDurationCriteriaType value) {
        this.journeyDurationCriteria = value;
    }

    /**
     * 获取originDepCriteria属性的值。
     * 
     * @return
     *     possible object is
     *     {@link OriginDepCriteriaType }
     *     
     */
    public OriginDepCriteriaType getOriginDepCriteria() {
        return originDepCriteria;
    }

    /**
     * 设置originDepCriteria属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link OriginDepCriteriaType }
     *     
     */
    public void setOriginDepCriteria(OriginDepCriteriaType value) {
        this.originDepCriteria = value;
    }

    /**
     * 获取originDestID属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getOriginDestID() {
        return originDestID;
    }

    /**
     * 设置originDestID属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setOriginDestID(String value) {
        this.originDestID = value;
    }

    /**
     * Gets the value of the preferredCabinType property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the preferredCabinType property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getPreferredCabinType().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link CabinTypeType }
     * 
     * 
     */
    public List<CabinTypeType> getPreferredCabinType() {
        if (preferredCabinType == null) {
            preferredCabinType = new ArrayList<CabinTypeType>();
        }
        return this.preferredCabinType;
    }

}
